Aggregate Functions in DLV

نویسندگان

  • Tina Dell'Armi
  • Wolfgang Faber
  • Giuseppe Ielpa
  • Nicola Leone
  • Gerald Pfeifer
چکیده

Disjunctive Logic Programming (DLP) is a very expressive formalism: it allows for expressing every property of finite structures that is decidable in the complexity class . Despite this high expressiveness, there are some simple properties, often arising in real-world applications, which cannot be encoded in a simple and natural manner. Especially properties that require the use of arithmetic operators (like sum, count, or min) on a set of elements satisfying some conditions, cannot be naturally expressed in classic DLP. To overcome this deficiency, we extend DLP by aggregate functions. In contrast to a previous proposal, we also consider the case of unstratified aggregates. We formally define the semantics of the new language (called DLP ) by means of a generalization of the Gelfond-Lifschitz transformation, and illustrate the use of the new constructs on relevant knowledge-based problems. We analyze the computational complexity of DLP , showing that the addition of aggregates does not bring a higher cost in that respect. And we provide an implementation of DLP in DLV– the state-of-the-art DLP system – and report on experiments which confirm the usefulness of the proposed extension also for the efficiency of the computation.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Design and implementation of aggregate functions in the DLV system

Disjunctive Logic Programming (DLP) is a very expressive formalism: it allows for expressing every property of finite structures that is decidable in the complexity class Σ2(=NP ). Despite this high expressiveness, there are some simple properties, often arising in real-world applications, which cannot be encoded in a simple and natural manner. Especially properties that require the use of arit...

متن کامل

Efficient Evaluation of Disjunctive Datalog Queries with Aggregate Functions

We present a technique for the optimization of (partially) bound queries over disjunctive datalog programs enriched with aggregate functions (Datalog∨A programs). This class of programs has been recently proved to be well-suited for declaratively formalizing repair semantics in data integration systems. Indeed, even though disjunctive programs provide a natural way for encoding the possible rep...

متن کامل

Aggregate Functions in Disjunctive Logic Programming: Semantics, Complexity, and Implementation in DLV

Disjunctive Logic Programming (DLP) is a very expressive formalism: it allows to express every property of finite structures that is decidable in the complexity class E^ (NP H ) . Despite the high expressiveness of DLP, there are some simple properties, often arising in real-world applications, which cannot be encoded in a simple and natural manner. Among these, properties requiring to apply so...

متن کامل

Optimizing Repair Programs and their Evaluation for Consistent Query Answering in Databases

Databases may not satisfy integrity constraints (ICs) for several reasons. Nevertheless, in most of the cases an important part of the data is still consistent wrt certain desired ICs, and the database can still give some correct answers to queries wrt those ICs. Consistent query answers are characterized as ordinary answers obtained from every minimally repaired and consistent version of the d...

متن کامل

The A-Pol System

Answer Set Programming (ASP) is a formalism widely used for knowledge representation since its introduction in 1988 by Gelfond and Lifschitz [4]. Nowadays there are powerful implementations of this paradigm, like DLV and Smodels. In order to increment the descriptive power of this tools, several extensions to their languages have been done. For example, the weak constraints of Smodels and more ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2003